@echo off

REM This file is meant to be called before you try to build Enhanced Reminders in VS (rather than from razzle.) To build in VS you will
REM need current versions of Ooty and Milan in the GAC. This script will uninstall any current version and then install whatever version
REM you have built in the current enlistment.

echo Uninstalling UCMA redist (x86, then amd64). This can be painfully slow.

msiexec.exe /X{8A9A9126-1730-47AA-818A-C47A468BB26B} /q
msiexec.exe /X{9A6922BE-512A-4202-B23B-E3E15A31C01A} /q

echo Removing Microsoft.Rtc.Workflow from the GAC

"%VS80COMNTOOLS%..\..\SDK\v2.0\bin\gacutil.exe" /uf Microsoft.Rtc.Workflow
"%VS80COMNTOOLS%..\..\SDK\v2.0\bin\gacutil.exe" /uf Microsoft.SpeechServer.Common
"%VS80COMNTOOLS%..\..\SDK\v2.0\bin\gacutil.exe" /uf Microsoft.SpeechServer.Log.Schema

echo Installing UcmaRedist (this is suprisingly fast)

msiexec /i %_NTTREE%\Dev\Server\Setup\UcmaRedist.msi

echo Adding Microsoft.Rtc.Workflow.dll to the GAC

"%VS80COMNTOOLS%..\..\SDK\v2.0\bin\gacutil.exe" /if %_NTTREE%\Dev\Ocps\Microsoft.Rtc.Workflow.dll
"%VS80COMNTOOLS%..\..\SDK\v2.0\bin\gacutil.exe" /if %_NTTREE%\Dev\Ocps\Microsoft.SpeechServer.Common.dll
"%VS80COMNTOOLS%..\..\SDK\v2.0\bin\gacutil.exe" /if %_NTTREE%\Dev\Ocps\Microsoft.SpeechServer.Log.Schema.dll
